home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / Tool Chest / Development Platforms / MPW Related / MPW Interfaces / AIncludes / ToolUtils.a < prev    next >
Encoding:
Text File  |  1993-09-17  |  40.7 KB  |  1,124 lines  |  [TEXT/MPS ]

  1. ;    File:        ToolUtils.a
  2. ;
  3. ;    Copyright:    © 1983-1993 by Apple Computer, Inc.
  4. ;                All rights reserved.
  5. ;
  6. ;    Version:    System 7.1 for ETO #11
  7. ;    Created:    Tuesday, March 30, 1993 18:00
  8. ;
  9. ;___________________________________________________________________________
  10.  
  11.     IF &TYPE('__INCLUDINGTOOLUTILS__') = 'UNDEFINED' THEN
  12. __INCLUDINGTOOLUTILS__    SET    1
  13.  
  14.                   IF          (&TYPE('wholeTools') = 'UNDEFINED') THEN
  15. wholeTools        EQU         1
  16.                   ENDIF
  17.  
  18.  
  19. ;+ Resource Manager
  20.  
  21. ; Resource attributes
  22.  
  23. resSysRef         EQU         7                         ; reference to system/local reference
  24. resSysHeap        EQU         6                         ; In system/in application heap
  25. resPurgeable      EQU         5                         ; Purgeable/not purgeable
  26. resLocked         EQU         4                         ; Locked/not locked
  27. resProtected      EQU         3                         ; Protected/not protected
  28. resPreload        EQU         2                         ; Read in at OpenResource?
  29. resChanged        EQU         1                         ; Existing resource changed since last update
  30. rcbMask           EQU         $FD                       ; Must preserve ResChanged over _ResAttrs
  31.  
  32. ; Map attributes
  33.  
  34. mapReadOnly       EQU         7                         ; is this file read-only?
  35. mapCompact        EQU         6                         ; Is a compact necessary?
  36. mapChanged        EQU         5                         ; Is it necessary to write map?
  37.  
  38. ; Resource Manager Globals
  39.  
  40. TopMapHndl        EQU         $A50                      ; topmost map in list [handle]
  41. SysMapHndl        EQU         $A54                      ; system map [handle]
  42. SysMap            EQU         $A58                      ; reference number of system map [word]
  43. CurMap            EQU         $A5A                      ; reference number of current map [word]
  44. ResReadOnly       EQU         $A5C                      ; Read only flag [word]
  45. ResLoad           EQU         $A5E                      ; Auto-load feature [word]
  46. ResErr            EQU         $A60                      ; Resource error code [word]
  47. ResErrProc        EQU         $AF2                      ; Resource error procedure [pointer]
  48. SysResName        EQU         $AD8                      ; Name of system resource file [STRING[19]]
  49.  
  50. ;new Resource Manager stuff
  51.  
  52. RomMapInsert      EQU         $B9E                      ; (byte) determines if we should link in map
  53. TmpResLoad        EQU         $B9F                      ; second byte is temporary ResLoad value.
  54.  
  55. ; the following word values are to be placed into the
  56. ; word located at RomMapInsert
  57.  
  58. MapTrue           EQU         $FFFF                     ; link in ROM map with resload true 
  59. MapFalse          EQU         $FF00                     ; link in ROM map with resload false
  60.  
  61. ;+ Font Manager
  62.  
  63.  
  64. ; Standard font ID's
  65.  
  66. sysFont           EQU         0                         ; system font ID
  67. applFont          EQU         1                         ; application font ID
  68. newYork           EQU         2                         ; standard release fonts
  69. geneva            EQU         3
  70. monaco            EQU         4
  71. venice            EQU         5
  72. london            EQU         6
  73. athens            EQU         7
  74. sanFran           EQU         8
  75. toronto           EQU         9
  76. cairo             EQU         11
  77. losAngeles        EQU         12
  78. times             EQU         20
  79. helvetica         EQU         21
  80. courier           EQU         22
  81. symbol            EQU         23
  82. mobile            EQU         24
  83.  
  84. ; Font Manager Globals
  85.  
  86. ApFontID          EQU         $984                      ; resource ID of application font [word]
  87. FMDefaultSize     EQU         $987                      ; default size [byte]
  88. CurFMInput        EQU         $988                      ; quickdraw FMInput Record [pointer]
  89. FMgrOutRec        EQU         $998                      ; quickdraw FontOutput Record [pointer]
  90. FScaleDisable     EQU         $A63                      ; disable font scaling? [byte]
  91.  
  92. ;new FONT manager stuff
  93.  
  94. WidthListHand     EQU         $8E4                      ; list of extra width tables, or nil.
  95. WidthPtr          EQU         $B10                      ; (long) Font Mgr global
  96. WidthTabHandle    EQU         $B2A                      ; Font width table handle for measure
  97. LastSPExtra       EQU         $B4C                      ; (long) most recent value of space extra
  98. SysFontFam        EQU         $BA6                      ; (word) System font family ID or zero
  99. SysFontSize       EQU         $BA8                      ; (word) System font size (or zero for 12 pt)
  100. FDevDisable       EQU         $BB3                      ; (byte) $FF to disable device-defined style extra
  101. LastFOND          EQU         $BC2                      ; (long) handle of last font def record
  102. FONDID            EQU         $BC6                      ; (word) ID of last font def record
  103. FractEnable       EQU         $BF4                      ; (byte) flag for fractional font widths
  104. UsedFWidths       EQU         $BF5                      ; (byte) flag saying if we used fract widths
  105. FScaleHFact       EQU         $BF6                      ; (long) horz. font scale factor
  106. FScaleVFact       EQU         $BFA                      ; (long) vertical font scale factor 
  107.  
  108. ;+ Window Manager
  109.  
  110. ; system windows have negative kinds
  111. dialogKind        EQU         2                         ; dialog windows
  112. userKind          EQU         8                         ; this and above numbers are for user
  113.  
  114. ; Values returned by window definition function's hit routine
  115.  
  116. wNoHit            EQU         0                         ; not in window at all
  117. wInContent        EQU         1                         ; in content area
  118. wInDrag           EQU         2                         ; in drag area
  119. wInGrow           EQU         3                         ; in grow area
  120. wInGoAway         EQU         4                         ; in go away area
  121. wInZoomIn         EQU         5                         ; in zoom in
  122. wInZoomOut        EQU         6                         ; in zoom out
  123.  
  124. ; FindWindow Return Codes
  125.  
  126. inDesk            EQU         0                         ; not in any window
  127. inMenuBar         EQU         1                         ; in the menu bar
  128. inSysWindow       EQU         2                         ; in a system window
  129. inContent         EQU         3                         ; in content area of user window
  130. inDrag            EQU         4                         ; in drag area of user window
  131. inGrow            EQU         5                         ; in grow area of user window
  132. inGoAway          EQU         6                         ; in go away area of user window
  133. inZoomIn          EQU         7                         ; in zoom in part code
  134. inZoomOut         EQU         8                         ; in zoom out part code
  135.  
  136. ; Resource ID's for windows
  137.  
  138. deskPatID         EQU         16                        ; desk pattern PAT ID
  139. documentProc      EQU         0                         ; standard document WDEF ID
  140. dBoxProc          EQU         1                         ; dialog box (document without titleBar) WDEF ID
  141. plainDBox         EQU         2                         ; no border WDEF ID
  142. altDBoxProc       EQU         3                         ; no shadow or title WDEF ID
  143. noGrowDocProc     EQU         4                         ; no grow area WDEF ID
  144. movableDBoxProc    EQU            5                        ; movable dialog box WDEF ID
  145. zoomDocProc       EQU         8                         ; with zoom box WDEF ID
  146. zoomNoGrow        EQU         12                        ; zoom with no grow box WDEF ID
  147. rDocProc          EQU         16                        ; document with rounded corners WDEF ID
  148.  
  149. ; Window Data Structure Definition
  150.  
  151. windowPort        EQU         0                         ; grafPort [108 bytes]
  152. windowKind        EQU         $6C                       ; type of window [word]
  153. wVisible          EQU         $6E                       ; visible flag [byte]
  154. wHilited          EQU         $6F                       ; select (hilite) flag [byte]
  155. wGoAway           EQU         $70                       ; has go away button [byte]
  156. wZoom             EQU         $71                       ; has zoom box [byte]
  157. structRgn         EQU         $72                       ; structure region of window [Handle]
  158. contRgn           EQU         $76                       ; content region of window [Handle]
  159. updateRgn         EQU         $7A                       ; update region of window [Handle]
  160. windowDef         EQU         $7E                       ; window definition procedure [Handle]
  161. wDataHandle       EQU         $82                       ; window proc-defined data [Handle]
  162. wTitleHandle      EQU         $86                       ; title string [Handle]
  163. wTitleWidth       EQU         $8A                       ; width in pixels of title string [word]
  164. wControlList      EQU         $8C                       ; control list of this window [handle]
  165. nextWindow        EQU         $90                       ; next window in z-ordered list [pointer]
  166. windowPic         EQU         $94                       ; picture handle for updates [handle]
  167. wRefCon           EQU         $98                       ; application use [long]
  168. windowSize        EQU         $9C                       ; size of window data structure
  169. WStateData        RECORD      0
  170. userState         DS.L        2                         ;Rect
  171. stdState          DS.L        2                         ;Rect
  172.                   ENDR
  173.  
  174.  
  175.  
  176. ; Window Manager Globals
  177.  
  178. WindowList        EQU         $9D6                      ; Z-ordered linked list of windows [pointer]
  179. PaintWhite        EQU         $9DC                      ; erase newly drawn windows? [word]
  180. WMgrPort          EQU         $9DE                      ; window manager's grafport [pointer]
  181. GrayRgn           EQU         $9EE                      ; rounded gray desk region [handle]
  182. CurActivate       EQU         $A64                      ; window slated for activate event [pointer]
  183. CurDeactive       EQU         $A68                      ; window slated for deactivate event [pointer]
  184. DragHook          EQU         $9F6                      ; user hook during dragging [pointer]
  185. DeskPattern       EQU         $A3C                      ; desk pattern [8 bytes]
  186. DeskHook          EQU         $A6C                      ; hook for painting the desk [pointer]
  187. GhostWindow       EQU         $A84                      ; window hidden from FrontWindow [pointer]
  188.  
  189.  
  190.  
  191. ;+ Menu Manager
  192.  
  193. ; "ASCII" marks for menu characters
  194.  
  195. noMark            EQU         0
  196. commandMark       EQU         $11                       ; command fan (cloverleaf)
  197. checkMark         EQU         $12                       ; check mark for menus
  198. diamondMark       EQU         $13                       ; diamond mark for menus
  199. appleMark         EQU         $14                       ; desk ornament menu title
  200.  
  201. ; MenuList Data Structure Definition -- one per menuBar
  202.  
  203. ; 6 Byte header
  204. lastMenu          EQU         0                         ; number of bytes in this menuList [word]
  205. lastRight         EQU         2                         ; h coordinate of 1st free point in menuBar [word]
  206. ; one of the following per menu
  207. menuoH            EQU         0                         ; menu handle [handle]
  208. menuLeft          EQU         4                         ; coordinate of left edge of menu [word]
  209.  
  210. ; MenuInfo Data Structure -- one per menu
  211.  
  212. menuID            EQU         0                         ; unique ID for each menuBar [word]
  213. menuWidth         EQU         2                         ; menu width [word]
  214. menuHeight        EQU         4                         ; menu height [word]
  215. menuDefHandle     EQU         6                         ; menu definition proc [handle]
  216. menuEnable        EQU         $A                        ; enable flags, one bit/item [long]
  217. menuData          EQU         $E                        ; menu item string [STRING]
  218. menuBlkSize       EQU         $E                        ; size of a menu block plus dataString
  219.  
  220. ; MenuString Data Structure -- one per menu item
  221.  
  222. itemIcon          EQU         0                         ; icon byte
  223. itemCmd           EQU         1                         ; apple (command key) byte
  224. itemMark          EQU         2                         ; checkmark character byte
  225. itemStyle         EQU         3                         ; style byte
  226.  
  227. ; Menu Manager Globals
  228.  
  229. MenuList          EQU         $A1C                      ; current menuBar list structure [handle]
  230. MenuFlash         EQU         $A24                      ; flash feedback count [word]
  231. MenuHook          EQU         $A30                      ; user hook during menuSelect [pointer]
  232. MBarEnable        EQU         $A20                      ; menuBar enable for desk accessories[word]
  233. MBarHook          EQU         $A2C                      ; user hook during menuSelect [pointer]
  234.  
  235. ;new Menu Manager stuff
  236.  
  237. MBarHeight        EQU         $BAA                      ; (word) height of menu bar (usually 20)
  238.  
  239. ;+ Control Manager
  240.  
  241. ; Part Codes
  242.  
  243. inButton          EQU         10                        ; in a push button
  244. inCheckBox        EQU         11                        ; in a checkBox button
  245. inUpButton        EQU         20                        ; in up button area of a dial
  246. inDownButton      EQU         21                        ; in down button area of a dial
  247. inPageUp          EQU         22                        ; in page up (gray) area of a dial
  248. inPageDown        EQU         23                        ; in page down (gray) area of a dial
  249. inThumb           EQU         129                       ; in thumb area of a dial
  250.  
  251. ; Constants for axis parameter of DragGrayRgn and DragControl
  252.  
  253. noConstraint      EQU         0                         ; free form dragging
  254. hAxisOnly         EQU         1                         ; horizontally only
  255. vAxisOnly         EQU         2                         ; vertically only
  256.  
  257. ; Resource ID's for controls
  258.  
  259. pushButProc       EQU         0                         ; rounded-corner pushButtons CDEF ID
  260. checkBoxProc      EQU         1                         ; check-box type buttons CDEF ID
  261. radioButProc      EQU         2                         ; radio buttons CDEF ID
  262. scrollBarProc     EQU         16                        ; scrollBar CDEF ID
  263. useWFont          EQU         8                         ; add this to get window font CDEF ID
  264. sBarPatID         EQU         17                        ; scrollBar pattern ID
  265.  
  266.  
  267. ; Popup Control Constants 
  268. popupMenuCDEFproc        EQU    1008                    ; popup menu CDEF ID
  269.  
  270. ; Popup Variation Codes 
  271. popupFixedWidth            EQU    $0001                    ; size will not vary with menu items
  272. popupReserved            EQU    $0002                    ; was popupUseCQD
  273. popupUseAddResMenu        EQU    $0004                    ; menu = AddResMenu(CNTL's refCon)
  274. popupUseWFont            EQU    $0008                    ; use this for window font/size/face
  275.  
  276. ; Popup Title characteristics
  277. popupTitleBold            EQU    $00000100                ; styles for the popup title
  278. popupTitleItalic        EQU    $00000200
  279. popupTitleUnderline        EQU    $00000400
  280. popupTitleOutline        EQU    $00000800
  281. popupTitleShadow        EQU    $00001000
  282. popupTitleCondense        EQU    $00002000
  283. popupTitleExtend        EQU    $00004000
  284. popupTitleNoStyle        EQU    $00008000
  285.  
  286. popupTitleLeftJust        EQU    $00000000                ; justification for the title
  287. popupTitleCenterJust    EQU    $00000001
  288. popupTitleRightJust        EQU    $000000FF
  289.  
  290.  
  291. ; Control Template
  292.  
  293. nextControl       EQU         $0                        ; next control in the list [handle]
  294. contrlOwner       EQU         $4                        ; owning window [pointer]
  295. contrlRect        EQU         $8                        ; bounding rectangle [8 bytes]
  296. contrlVis         EQU         $10                       ; visible state [byte]
  297. contrlHilite      EQU         $11                       ; hilite state [byte]
  298. contrlValue       EQU         $12                       ; current value of control [word]
  299. contrlMin         EQU         $14                       ; minimum value of control [word]
  300. contrlMax         EQU         $16                       ; maximum value of control [word]
  301. contrlDefHandle   EQU         $18                       ; control definition procedure [handle]
  302. contrlData        EQU         $1C                       ; data for definition proc [handle]
  303. contrlAction      EQU         $20                       ; local actionProc [pointer]
  304. contrlRFcon       EQU         $24                       ; refcon defined by application [long]
  305. contrlTitle       EQU         $28                       ; title string [STRING]
  306. contrlSize        EQU         $28                       ; size of control data structure less title
  307.  
  308. ; Control Manager Globals
  309.  
  310. DragPattern       EQU         $A34                      ; DragTheRgn pattern [8 bytes]
  311. DragFlag          EQU         $A44                      ; implicit parameter to DragControl [word]
  312. CurDragAction     EQU         $A46                      ; implicit actionProc for dragControl [pointer]
  313.  
  314.  
  315. ;+ Text Edit
  316.  
  317.  
  318. ; Justification styles
  319.  
  320. teJustLeft        EQU         0                         ; left justified text
  321. teJustRight       EQU         -1                        ; right justified text
  322. teJustCenter      EQU         1                         ; center justified text
  323. teForceLeft       EQU         -2                        ; for Arabic fonts, force left justification
  324.  
  325. ; new names for the Justification styles
  326. teFlushDefault    EQU            0                        ; flush according to the line direction
  327. teCenter        EQU            1                        ; center justify
  328. teFlushRight    EQU            -1                        ; flush right for all scripts
  329. teFlushLeft        EQU            -2                        ; flush left for all scripts
  330.  
  331. ; Text Edit Record
  332.  
  333. teDestRect        EQU         $0                        ; destination rectangle [8 bytes]
  334. teViewRect        EQU         $8                        ; view rectangle rectangle [8 bytes]
  335. teSelRect         EQU         $10                       ; select rectangle [8 bytes]
  336. teLineHite        EQU         $18                       ; lineheight [word]
  337. teAscent          EQU         $1A                       ; first baseline offset [word]
  338. teSelPoint        EQU         $1C                       ; selection point [long]
  339. teSelStart        EQU         $20                       ; selection start [word]
  340. teSelEnd          EQU         $22                       ; selection end [word]
  341. teActive          EQU         $24                       ; active [byte]
  342. teWordBreak       EQU         $26                       ; word break routine [pointer]
  343. teClikProc        EQU         $2A                       ; click loop routine [pointer]
  344. teClikTime        EQU         $2E                       ; time of last click [long]
  345. teClikLoc         EQU         $32                       ; location of double click [long]
  346. teCarTime         EQU         $34                       ; time for next caret toggle [long]
  347. teCarOn           EQU         $38                       ; is caret on? [byte]
  348. teCarAct          EQU         $39                       ; is caret active? [byte]
  349. teJust            EQU         $3A                       ; fill style [word]
  350. teLength          EQU         $3C                       ; length of text below [word]
  351. teTextH           EQU         $3E                       ; text [handle]
  352. teRecBack         EQU         $42                       ; unused [word]
  353. teRecLine         EQU         $44                       ; unused [word]
  354. teLftClick        EQU         $46                       ; click was to left? [byte]
  355. teLftCaret        EQU         $47                       ; caret was to left? [byte]
  356. teCROnly          EQU         $48                       ; <CR> only for line breaks? [byte]
  357. teFontStuff       EQU         $4A                       ; space for font specifier [8 bytes]
  358. teFont            EQU         $4A                       ; text font [word]
  359. teFace            EQU         $4C                       ; text face [word]
  360. teMode            EQU         $4E                       ; text mode [word]
  361. teSize            EQU         $50                       ; text size [word]
  362. teGrafPort        EQU         $52                       ; grafport for editting [pointer]
  363. teHiHook          EQU         $56                       ; hook for hilite routine [pointer]
  364. teCarHook         EQU         $5A                       ; hook for hilite routine [pointer]
  365. teNLines          EQU         $5E                       ; number of lines [word]
  366. teLines           EQU         $60                       ; line starts [words...]
  367. teRecSize         EQU         $68                       ; base size of a record w/o lines
  368.  
  369. ; Text Edit Globals
  370.  
  371. TEDoText          EQU         $A70                      ; textEdit doText proc hook [pointer]
  372. TERecal           EQU         $A74                      ; textEdit recalText proc hook [pointer]
  373. TEScrpLength      EQU         $AB0                      ; textEdit Scrap Length [word]
  374. TEScrpHandle      EQU         $AB4                      ; textEdit Scrap [handle]
  375. TEWdBreak         EQU         $AF6                      ; default word break routine [pointer]
  376. TEFindWord        EQU            $7F8                    ; low-memory hook for TextEdit's FindWord routine
  377.  
  378. ;new TE stuff
  379.  
  380. WordRedraw        EQU         $BA5                      ; (byte) - used by TextEdit RecalDraw
  381. TESysJust         EQU         $BAC                      ; (word) system justification (intl. textEdit)
  382. TEFlags           EQU         teRecBack                 ; turn whole byte into bit flags
  383. teFAutoPos        EQU         6                         ; set this bit for auto position/scroll
  384.  
  385. ;+ Dialog Manager
  386.  
  387. ; Item codes in item list
  388.  
  389. userItem          EQU         0                         ; application-defined (dialog only)
  390. ctrlItem          EQU         4                         ; must be added to following four items
  391. btnCtrl           EQU         0                         ; standard button
  392. chkCtrl           EQU         1                         ; standard check box
  393. radCtrl           EQU         2                         ; standard radio button
  394. resCtrl           EQU         3                         ; control defined in resource file
  395. statText          EQU         8                         ; static text
  396. editText          EQU         16                        ; editable text (dialog only)
  397. iconItem          EQU         32                        ; icon
  398. picItem           EQU         64                        ; quickdraw picture
  399. itemDisable       EQU         128                       ; add to any of above to disable
  400.  
  401.  
  402. ; Generic buttons
  403.  
  404. okButton          EQU         1                         ; OK button
  405. cancelButton      EQU         2                         ; Cancel button
  406.  
  407. ; Alert/Dialog Resource ID's
  408.  
  409. stopIcon          EQU         0                         ; stop icon ID
  410. noteIcon          EQU         1                         ; note icon ID
  411. cautionIcon       EQU         2                         ; caution icon ID
  412.  
  413. ; Dialog Template
  414.  
  415. dBounds           EQU         $0                        ; dialog bounds rectangle
  416. dWindProc         EQU         $8                        ; window proc ID
  417. dVisible          EQU         $A                        ; visible flag
  418. dGoAway           EQU         $C                        ; go away flag
  419. dRefCon           EQU         $E                        ; reference constant
  420. dItems            EQU         $12                       ; item list ID and handle
  421. dTitle            EQU         $14                       ; dialog window title
  422.  
  423. ; Alert Template
  424.  
  425. aBounds           EQU         $0                        ; alert box height and width
  426. aItems            EQU         $8                        ; item list ID
  427. aStages           EQU         $A                        ; stages word
  428.  
  429. ; Dialog/Alert Window Record
  430.  
  431. dWindow           EQU         $0                        ; window record
  432. items             EQU         $9C                       ; Item list [handle]
  433. teHandle          EQU         $A0                       ; textEdit object [handle]
  434. editField         EQU         $A4                       ; current field being edited [word]
  435. editOpen          EQU         $A6                       ; is editting open? [word]
  436. aDefItem          EQU         $A8                       ; default item for alerts [word]
  437. dWindLen          EQU         $AA                       ; dialog record length
  438.  
  439. ; In each item
  440.  
  441. itmHndl           EQU         0                         ; handle to the item
  442. itmRect           EQU         $4                        ; bounding rect of item
  443. itmType           EQU         $C                        ; item type
  444. itmData           EQU         $D                        ; item string, must be even length
  445.  
  446. ; Dialog Manager Globals
  447.  
  448. ANumber           EQU         $A98                      ; active alert ID [word]
  449. ACount            EQU         $A9A                      ; # times this alert called [word]
  450. DABeeper          EQU         $A9C                      ; beep routine [pointer]
  451. DAStrings         EQU         $AA0                      ; paramText substutution strings [4 handles]
  452. DlgFont           EQU         $AFA                      ; default dialog font ID [word]
  453.  
  454.  
  455. ;+ Package Globals
  456.  
  457.  
  458. AppPacks          EQU         $AB8                      ; packages' code [8 handles]
  459.  
  460.  
  461. ;+ Finder related Globals
  462.  
  463.  
  464. FinderName        EQU         $2E0                      ; "Finder" name [STRING[15]]
  465. AppParmHandle     EQU         $AEC                      ; handle to hold application parameters
  466.  
  467.  
  468. ;+ Miscellaneous Globals
  469.  
  470.  
  471. ApplScratch       EQU         $A78                      ; application scratch area [12 Bytes]
  472. ToolScratch       EQU         $9CE                      ; scratch area [8 bytes]
  473. TempRect          EQU         $9FA                      ; scratch rectangle [8 bytes]
  474.  
  475. ; System Patterns
  476.  
  477. sysPatListID      EQU         0                         ; ID of PAT# which contains 38 patterns
  478.  
  479.                   IF          wholeTools THEN
  480.  
  481. ; Resource Manager
  482.  
  483. mCCMask           EQU         $60                       ; mapCompact + mapChanged
  484. mChMask           EQU         $20                       ; mapChanged
  485. mCoMask           EQU         $40                       ; mapCompact
  486.  
  487. ; Font Manager
  488.  
  489. ; Font header values
  490.  
  491. propFont          EQU         $9000                     ; proportional font type
  492. prpFntH           EQU         $9001                     ; with height table
  493. prpFntW           EQU         $9002                     ; with width table
  494. prpFntHW          EQU         $9003                     ; with height & width table
  495. fixedFont         EQU         $B000                     ; fixed-pitch font type
  496. fxdFntH           EQU         $B001                     ; with height table
  497. fxdFntW           EQU         $B002                     ; with width table
  498. fxdFntHW          EQU         $B003                     ; with height & width table
  499. fontWid           EQU         $ACB0                     ; width-only font type
  500.  
  501. ; control/status codes for linkage w/font manager
  502.  
  503. fMgrCtl1          EQU         8                         ; printer drivers
  504.  
  505. ; Font Header Data Record
  506.  
  507. fFontType         EQU         0                         ; font type [word]
  508. fFirstChar        EQU         2                         ; ASCII code of first char [word]
  509. fLastChar         EQU         4                         ; ASCII code of last char [word]
  510. fWidMax           EQU         6                         ; maximum width of any char in pixels [word]
  511. fKernMax          EQU         8                         ; Negative of maximum character kern [word]
  512. fNDescent         EQU         10                        ; negative of descent [word]
  513. fFRectWidth       EQU         12                        ; width of font rectangle [word]
  514. fFRectHeight      EQU         14                        ; height of font rectangle [word]
  515. fOWTLoc           EQU         16                        ; offset to offset/width table [word]
  516. fAscent           EQU         18                        ; ascent above baseline in pixels [word]
  517. fDescent          EQU         20                        ; descent below baseline in pixels [word]
  518. fLeading          EQU         22                        ; space between lines in pixels [word]
  519. fRowWords         EQU         24                        ; row width of bit image / 2 [word]
  520.  
  521. ; Font Manager Input Record (CurFMInput)
  522.  
  523. fmInFamily        EQU         0                         ; family [word]
  524. fmInSize          EQU         2                         ; size [word]
  525. fmInFace          EQU         4                         ; face [word]
  526. fmInNeedBits      EQU         5                         ; needBits [byte]
  527. fmInDevice        EQU         6                         ; device number [byte]
  528. fmInNumer         EQU         8                         ; numerator of scale [fixed]
  529. fmInDenom         EQU         12                        ; denominator of scale [fixed]
  530.  
  531.  
  532. ; Font Manager Output record (FMgrOutRec)
  533.  
  534. fmOutError        EQU         0                         ; error code [word]
  535. fmOutFontH        EQU         2                         ; the actual font [handle]
  536. fmOutBold         EQU         6                         ; bolding factor [byte]
  537. fmOutItalic       EQU         7                         ; italic factor [byte]
  538. fmOutULOffset     EQU         8                         ; underline offset [byte]
  539. fmOutULShadow     EQU         9                         ; underline halo [byte]
  540. fmOutULThick      EQU         10                        ; underline thickness [byte]
  541. fmOutShadow       EQU         11                        ; shadow factor [byte]
  542. fmOutExtra        EQU         12                        ; extra horizontal width [byte]
  543. fmOutAscent       EQU         13                        ; height above baseline [byte]
  544. fmOutDescent      EQU         14                        ; height below baseline [byte]
  545. fmOutWidMax       EQU         15                        ; maximum width of character [byte]
  546. fmOutLeading      EQU         16                        ; space between lines [byte]
  547. fmOutNumer        EQU         18                        ; point for numerators of scale factor [long]
  548. fmOutDenom        EQU         22                        ; point for denominators of scale factor [long]
  549.  
  550.  
  551. ;WidthTable data structure
  552.  
  553. widTabData        EQU         0                         ;ARRAY[1..256] OF LONGINT character widths
  554. widTabFont        EQU         1024                      ;Handle font record used to build table
  555. widthSExtra       EQU         1028                      ;LONGINT space extra used for table
  556. widthStyle        EQU         1032                      ;LONGINT extra due to style
  557. widthFID          EQU         1036                      ;INTEGER font family ID
  558. widthFSize        EQU         1038                      ;INTEGER font size request
  559. widthFace         EQU         1040                      ;INTEGER style (face) request
  560. widthDevice       EQU         1042                      ;INTEGER device requested
  561. widthVInScale     EQU         1044                      ;FIXED scale factors requested
  562. widthHInScale     EQU         1048                      ;FIXED scale factors requested
  563. widthAFID         EQU         1052                      ;INTEGER actual font family ID for table
  564. widthFHand        EQU         1054                      ;Handle family record used to build up table
  565. widthUsedFam      EQU         1058                      ;BOOLEAN used fixed point family widths
  566. widthAFace        EQU         1059                      ;BYTE actual face produced
  567. widthVOutput      EQU         1060                      ;INTEGER vertical scale output value
  568. widthHOutput      EQU         1062                      ;INTEGER horizontal scale output value
  569. widthVFactor      EQU         1064                      ;INTEGER vertical scale output value
  570. widthHFactor      EQU         1066                      ;INTEGER horizontal scale output value
  571. widthASize        EQU         1068                      ;INTEGER actual size of actual font used
  572. ;widTabSize        EQU         1070                      ;INTEGER total size of table
  573.  
  574. ; Font Family Definition
  575.  
  576. ffFlags           EQU         0                         ; flags for family (word)
  577. ffFamID           EQU         2                         ; family ID number (word)
  578. ffFirst           EQU         4                         ; ASCII code of first character (word)
  579. ffLast            EQU         6                         ; ASCII code of last character (word)
  580. ffAscent          EQU         8                         ; maximum ascent expressed for 1 pt (word)
  581. ffDescent         EQU         10                        ; maximum descent expressed for 1 pt (word)
  582. ffLeading         EQU         12                        ; maximum leading expressed for 1 pt (word)
  583. ffWidMax          EQU         14                        ; maximum widMax expressed for 1 pt (word)
  584. ffWTabOff         EQU         16                        ; offset to width table (long)
  585. ffKernOff         EQU         20                        ; offset to kerning table (long)
  586. ffStylOff         EQU         24                        ; offset to style mapping table (long)
  587. ffStyleOff         EQU         24                        ; offset to style mapping table (long)
  588. ffProperty        EQU         28                        ; style property info (12 words)
  589. ffIntl            EQU         46                        ; reserved for international use (2 words)
  590. ffVersion         EQU         50                        ; FOND version number
  591.  
  592. ; Font Characterization Table
  593.  
  594. dpiVert           EQU         0                         ; vertical dots per inch [word]
  595. dpiHoriz          EQU         2                         ; horizontal dots per inch [word]
  596. boldChr           EQU         4                         ; bold characteristics [3 bytes]
  597. italChr           EQU         7                         ; italic characteristics [3 bytes]
  598. ; unused [3 bytes]
  599. outlineChr        EQU         13                        ; outline characteristics [3 bytes]
  600. shadowChr         EQU         16                        ; shadow characteristics [3 bytes]
  601. condChr           EQU         19                        ; condensed characteristics [3 bytes]
  602. extendChr         EQU         22                        ; extended characteristics [3 bytes]
  603. underChr          EQU         25                        ; underline characteristics [3 bytes]
  604.  
  605. ; Globals
  606.  
  607. CurFMFamily       EQU         $988                      ; current font family
  608. CurFMSize         EQU         $98A                      ; current font size
  609. CurFMFace         EQU         $98C                      ; current font face
  610. CurFMNeedBits     EQU         $98D                      ; boolean specifying whether it needs strike
  611. CurFMDevice       EQU         $98E                      ; current font device
  612. CurFMNumer        EQU         $990                      ; current numerator of scale factor
  613. CurFMDenom        EQU         $994                      ; current denominator of scale factor
  614. FOutRec           EQU         $998                      ; Font Manager output record
  615. FMDotsPerInch     EQU         $9B2                      ; h,v dotsPerInch of current device
  616. FMStyleTab        EQU         $9B6                      ; style heuristic table supplied by device
  617. RomFont0          EQU         $980                      ; system font [handle]
  618. GotStrike         EQU         $986                      ; Do we have the strike? [byte]
  619.  
  620.  
  621. ; Window Manager
  622.  
  623. ; Window Definition Procedure Messages
  624.  
  625. wDrawMsg          EQU         0                         ; draw yourself
  626. wHitMsg           EQU         1                         ; hit test
  627. wCalcRgnMsg       EQU         2                         ; recalculate your regions
  628. wInitMsg          EQU         3                         ; initialize yourself
  629. wDisposeMsg       EQU         4                         ; dispose any private data
  630. wGrowMsg          EQU         5                         ; drag out grow outline
  631. wGIconMsg         EQU         6                         ; draw the grow icon
  632. OldStructure      EQU         $9E6                      ; saved structure region [handle]
  633. OldContent        EQU         $9EA                      ; saved content region [handle]
  634. SaveVisRgn        EQU         $9F2                      ; temporarily saved visRegion [handle]
  635. CurDeKind         EQU         $A22                      ; window kind of deactivated window [word]
  636. SaveUpdate        EQU         $9DA                      ; Enable update accumulation? [word]
  637.  
  638. ; Menu Manager
  639.  
  640. ; Menu Definition Procedure Messages
  641.  
  642. mDrawMsg          EQU         0                         ; draw yourself
  643. mChooseMsg        EQU         1                         ; select an item
  644. mSizeMsg          EQU         2                         ; calculate your size
  645.  
  646. ; Menu Resource IDs
  647.  
  648. textMenuProc      EQU         0                         ; standard text menu MDEF ID
  649. TheMenu           EQU         $A26                      ; ID of hilited menu [word]
  650. SavedHandle       EQU         $A28                      ; saved bits under a menu [handle]
  651.  
  652. ;misc Menu stuff
  653.  
  654. MrMacHook         EQU         $A2C                      ; Mr. Macintosh hook [pointer]
  655.  
  656. ; Control manager
  657.  
  658. ; Control Definition Procedure Messages
  659.  
  660. drawCtlMsg        EQU         0                         ; draw message
  661. hitCtlMsg         EQU         1                         ; hit test message
  662. calcCtlMsg        EQU         2                         ; calc region message
  663. newCtlMsg         EQU         3                         ; init message
  664. dispCtlMsg        EQU         4                         ; dispose any private data message
  665. posCtlMsg         EQU         5                         ; adjust indicator position message
  666. thumbCtlMsg       EQU         6                         ; calculate rectangles for thumb dragging
  667. dragCtlMsg        EQU         7                         ; custom drag message
  668. trackCtlMsg       EQU         8                         ; track yourself message
  669. calcWholeCtlMsg   EQU         10                        ; calc whole region message
  670. calcThumbCtlMsg   EQU         11                        ; calc indicator region message
  671.  
  672. ;stage definition--packed 2 to a byte, 4 stages in a word
  673.  
  674. volBits           EQU         3                         ; number of beeps
  675. alBit             EQU         4                         ; alert bit (put up box this time?)
  676. okDismissal       EQU         8                         ; bit for OK/Cancel default in each stage
  677.  
  678. ; DialogList Data Structure Definitions
  679.  
  680. dlgMaxIndex       EQU         0                         ; maximum index (=items-1) stored here
  681.  
  682.  
  683. SaveProc          EQU         $A90                      ; address of Save failsafe procedure
  684. SaveSP            EQU         $A94                      ; Safe SP for restart or save
  685.  
  686. ; DITLMethod 
  687. overlayDITL         EQU 0
  688. appendDITLRight     EQU 1
  689. appendDITLBottom     EQU 2
  690.  
  691. ; Dialog Selectors
  692. AppendDITL            EQU    $402
  693. CountDITL            EQU    $403
  694. ShortenDITL            EQU    $404
  695.  
  696. ; Package Manager
  697.  
  698. FPState           EQU         $A4A                      ; floating point state [6 bytes]
  699. App2Packs         EQU         $BC8                      ; $BC8-$BE7 eight more package handles
  700.  
  701. ; Resource Manager
  702.  
  703. RMGRPerm          EQU         $BA4                      ; (byte) - permission byte for OpenResFile
  704.  
  705. ; Miscellaneous Constants
  706.  
  707. screenRadius      EQU         $00100010                 ; rounded corners for desk area
  708.  
  709. ; Miscellaneous Globals
  710.  
  711. IconBitmap        EQU         $A0E                      ; bitmap used for plotting things
  712. TaskLock          EQU         $A62                      ; re-entering SystemTask [byte]
  713. CloseOrnHook      EQU         $A88                      ; hook for closing desk ornaments
  714.  
  715. ;new MacApp stuff
  716.  
  717. MAErrProc         EQU         $BE8                      ; (long) MacApp error proc address
  718. MASuperTab        EQU         $BEC                      ; (long) handle to MacApp superclass table
  719.  
  720.  
  721. ;**************** NEW TOOL EQUATES ************
  722.  
  723. ; Font Manager
  724.  
  725. ; addition to FMgrOutRec (was unused)
  726.  
  727. fmOutCurStyle     EQU         17                        ;style algorthmically applied by QuickDraw
  728.  
  729. ;___________________________________________________________________________
  730. ;
  731. ; Window Manager
  732.  
  733. ; auxWinRec structure
  734.  
  735. awNext            EQU         $0                        ;next in chain [Handle]
  736. awOwner           EQU         $4                        ;owner ID [WindowPtr]
  737. awCTable          EQU         $8                        ;color table [CTabHandle]
  738. dialogCItem       EQU         $C                        ;handle to dialog manager structures [handle]
  739. awFlags           EQU         $10                       ;handle for Ernie [handle]
  740. awResrv           EQU         $14                       ;for expansion [longint]
  741. awRefCon          EQU         $18                       ;user constant [longint]
  742. auxWinSize        EQU         $1C                       ;size of record
  743. AuxWinHead        EQU         $0CD0                     ;[handle] Window Aux List head
  744.  
  745. ; Window Part Identifiers which correlate color table entries with window elements
  746.  
  747. wContentColor     EQU         0
  748. wFrameColor       EQU         1
  749. wTextColor        EQU         2
  750. wHiliteColor      EQU         3
  751. wTitleBarColor    EQU         4
  752.  
  753.  
  754. ;___________________________________________________________________________
  755. ;
  756. ; Control Manager
  757.  
  758. ; auxCtlRec structure
  759.  
  760. acNext            EQU         $0                        ;next in chain [AuxCtlHndl]
  761. acOwner           EQU         $4                        ;owner ID [ControlHandle]
  762. acCTable          EQU         $8                        ;color table [CCTabHandle]
  763. acFlags           EQU         $C                        ;misc flag byte [word]
  764. acReserved        EQU         $E                        ;for expansion [LONGINT]
  765. acRefCon          EQU         $12                       ;user constant [LONGINT]
  766. acSize            EQU         $16                       ;size of record
  767. AuxCtlHead        EQU         $0CD4                     ;[handle] Control Aux List head
  768.  
  769. ; Here are some equates for the colors of control parts
  770.  
  771. cFrameColor       EQU         0
  772. cBodyColor        EQU         1
  773. cTextColor        EQU         2
  774. cThumbColor       EQU         3
  775.  
  776. ;___________________________________________________________________________
  777. ;
  778. ; Menu Manager
  779.  
  780. MenuDisable       EQU         $0B54                     ; menuID and Item when disabled item selected
  781. MBDFHndl          EQU         $0B58                     ; handle to current menu bar defproc
  782. MBSaveLoc         EQU         $0B5C                     ; handle to the mbarproc private data
  783. MenuCInfo         EQU         $0D50                     ; hanel to menu color information table
  784. TopMenuItem       EQU         $A0A                      ; pixel value of top of scrollable menu
  785. AtMenuBottom      EQU         $A0C                      ; pixel value of bottom of scrollable menu
  786.  
  787. ;
  788. ; color menu table equates (mct = menu color table)
  789. ;
  790. mctID             EQU         $0
  791. mctItem           EQU         $2
  792. mctRGB1           EQU         $4
  793. mctRGB2           EQU         $A
  794. mctRGB3           EQU         $10
  795. mctRGB4           EQU         $16
  796. mctReserved       EQU         $1C
  797. mctEntrySize      EQU         $1E
  798.  
  799. ;
  800. ; miscellaneous equates for hierarchical menus
  801. ;
  802.  
  803. hMenuCmd          EQU         $1B                       ; itemCmd == $1B ==> hierarchical menu for this item
  804. scriptMenuCmd     EQU         28                        ; itemCmd == $1C ==> item to be displayed in script font
  805. hierMenu          EQU         -1                        ; InsertMenu(handle, hierMenu), when beforeID ==
  806. ; hierMenu, the handle is inserted in the
  807. ; hierarchical menuList
  808. mPopUpMsg         EQU         3                         ; menu defProc messages - place yourself
  809. ; miscellaneous hierarchical equates
  810. ;
  811. hMenuMark         EQU         200                       ; '»' = menu character indicates item with hierarchical menu
  812.  
  813. ;
  814. ; miscellaneous menubar equates
  815. ;
  816. mbMenu1Loc        EQU         $A                        ; first menu is 10 pixels from left side of screen
  817. mctAllIds         EQU         -97                       ; search for all IDs for the given Item
  818.  
  819. ;
  820. ; color menu table search (and destroy) messages (mct = menu color table)
  821. ;
  822. mctAllItems       EQU         -98                       ; search for all Items for the given ID
  823. mctLastIDIndic    EQU         -99                       ; last entry in color table has this in ID field
  824.  
  825. ;___________________________________________________________________________
  826. ;
  827. ; Text Edit
  828.  
  829. ; Set/Replace style modes
  830.  
  831. fontBit           EQU         0                         ; set font
  832. faceBit           EQU         1                         ; set face
  833. sizeBit           EQU         2                         ; set size
  834. clrBit            EQU         3                         ; set color
  835. addSizeBit        EQU         4                         ; add size mode
  836. toglBit           EQU         5                         ;set faces in toggle mode
  837. ; TESetStyle/TEContinuousStyle modes
  838. doFont            EQU         $01
  839. doFace            EQU         2
  840. doSize            EQU         4
  841. doColor           EQU         8
  842. doAll             EQU         15                        ; set font/face/size/color
  843. addSize           EQU         16
  844. doToggle          EQU         32
  845. ; New internal dispatch table
  846. ; --offsets into TEDispatchRec
  847. EOLHook           EQU         0                         ; [ProcPtr] TEEOLHook
  848. DRAWHook          EQU         4                         ; [ProcPtr] TEWidthHook
  849. WIDTHHook         EQU         8                         ; [ProcPtr] TEDrawHook
  850. HITTESTHook       EQU         12                        ; [ProcPtr] TEHitTestHook
  851. nWIDTHHook        EQU            24                        ; [ProcPtr] nTEWidthHook    <6>
  852. TextWidthHook    EQU            28                        ; [ProcPtr] TETextWidthHook    <13>
  853. ; --selectors for TECustomHook
  854. IntEOLHook        EQU         0
  855. IntDrawHook       EQU         1
  856. IntWidthHook      EQU         2
  857. IntHitTestHook    EQU         3
  858. IntNWidthHook    EQU            6                        ; new version of WidthHook    <6>
  859. IntTextWidthHook    EQU        7                        ; new TextWidthHook            <13>
  860. teDispatchH       EQU         teRecBack                 ; new handle to internal dispatch record
  861. ; handle to style record
  862.  
  863. teStylesH         EQU         $4A                       ; replaces teFont/teFace
  864.  
  865. ; offsets into TEStyleRec
  866.  
  867. nRuns             EQU         $0                        ; [INTEGER] # of entries in styleStarts array
  868. nStyles           EQU         $2                        ; [INTEGER] # of distinct styles
  869. styleTab          EQU         $4                        ; [STHandle] handle to distinct styles
  870. lhTab             EQU         $8                        ; [LHHandle] handle to line heights
  871. teRefCon          EQU         $C                        ; [LONGINT] reserved
  872. nullStyle         EQU         $10                       ; [NullStHandle] to style set at null selection
  873. runs              EQU         $14                       ; array of styles
  874.  
  875. ; offsets into NullStRec
  876.  
  877. teReserved        EQU         0                         ; [LONGINT] reserved for future expansion
  878. nullScrap         EQU         4                         ; [StScrpHandle] handle to scrap style table.
  879. nullStSize        EQU         8
  880.  
  881. ; offsets into StyleRun array
  882.  
  883. startChar         EQU         0                         ; [INTEGER] offset into text to start of style
  884. styleIndex        EQU         2                         ; [INTEGER] style index
  885. stStartSize       EQU         4                         ; size of a styleStarts entry
  886.  
  887. ; offsets into STElement
  888.  
  889. stCount           EQU         0                         ; [INTEGER] # of times this style is used
  890. stHeight          EQU         2                         ; [INTEGER] line height
  891. stAscent          EQU         4                         ; [INTEGER] ascent
  892. stFont            EQU         6                         ; [INTEGER] font
  893. stFace            EQU         8                         ; [Style] face
  894. stSize            EQU         10                        ; [INTEGER] size
  895. stColor           EQU         12                        ; [RGBColor] color
  896. stRecSize         EQU         18                        ; size of a teStylesRec
  897.  
  898. ; offsets into TextStyle
  899.  
  900. tsFont            EQU         0                         ; [INTEGER] font
  901. tsFace            EQU         2                         ; [Style] face
  902. tsSize            EQU         4                         ; [INTEGER] size
  903. tsColor           EQU         6                         ; [RGBColor] color
  904. styleSize         EQU         12                        ; size of a StylRec
  905.  
  906. ; offsets into StScrpRec
  907.  
  908. scrpNStyles       EQU         0                         ; [INTEGER] # of styles in scrap
  909. scrpStyleTab      EQU         2                         ; [ScrpSTTable] start of scrap styles array
  910.  
  911. ; offsets into scrpSTElement
  912.  
  913. scrpStartChar     EQU         0                         ; [LONGINT] char where this style starts
  914. scrpHeight        EQU         4                         ; [INTEGER] line height
  915. scrpAscent        EQU         6                         ; [INTEGER] ascent
  916. scrpFont          EQU         8                         ; [INTEGER] font
  917. scrpFace          EQU         10                        ; [Style] face
  918. scrpSize          EQU         12                        ; [INTEGER] size
  919. scrpColor         EQU         14                        ; [RGBColor] color
  920. scrpRecSize       EQU         20                        ; size of a scrap record
  921.  
  922. teFAutoScr            EQU        0                        ; (00000001b)
  923. ; feature definitions for TEFeatureFlag
  924. teFTextBuffering     EQU     1                         ; (00000010b)
  925. teFOutlineHilite     EQU     2                         ; (00000100b)
  926. teFInlineInput          EQU        3                        ; (00001000b)
  927. teFUseTextServices    EQU        4                        ; (00010000b)
  928.  
  929. ; action for the new "bit (un)set" interface, TEFeatureFlag
  930. TEBitClear        EQU         0
  931. TEBitSet          EQU         1                         ; set the selector bit.
  932. TEBitTest         EQU         -1                        ; no change; just return the present value
  933.  
  934. ; constants for identifying the routine that called FindWord <5>
  935. teWordSelect     EQU            4                        ; clickExpand to select word
  936. teWordDrag         EQU            8                        ; clickExpand to drag new word
  937. teFromFind         EQU            12                        ; FindLine called it ($0C)
  938. teFromRecal         EQU            16                        ; RecalLines called it ($10)
  939.  
  940. ; constants for identifying DoText selectors
  941. teFind            Equ            0                        ; DoText called for searching
  942. teHighlight        Equ            1                        ; DoText called for highlighting
  943. teDraw            Equ            -1                        ; DoText called for drawing text
  944. teCaret            Equ            -2                        ; DoText called for drawing the caret
  945.  
  946. ; Text Edit Selectors:
  947.  
  948. teStylPaste      EQU         0
  949. teStylePaste      EQU         0
  950. teSetStyle        EQU         1
  951. teReplaceStyle    EQU         2
  952. teGetStyle        EQU         3
  953. getStylHandle    EQU         4
  954. getStyleHandle    EQU         4
  955. setStylHandle    EQU         5
  956. setStyleHandle    EQU         5
  957. getStylScrap     EQU         6
  958. getStyleScrap     EQU         6
  959. teStylInsert     EQU         7
  960. teStyleInsert     EQU         7
  961. teGetPoint        EQU         8
  962. teGetHeight       EQU         9
  963.  
  964. teContinuousStyle EQU         10
  965. setStylScrap     EQU         11
  966. setStyleScrap     EQU         11
  967. teCustomHook      EQU         12
  968. teNumStyles       EQU         13
  969. teFeatureFlag    EQU            14                        ; new for System 6.0.5/Script Systems 6.0.4 <1.5>
  970.  
  971.                   MACRO
  972.                   _TEContinuousStyle
  973.                   MOVE.W      #teContinuousStyle,-(SP)
  974.                   DC.W        $A83D                     ; _TEDispatch
  975.                   ENDM
  976.  
  977.                   MACRO
  978.                   _SetStylScrap
  979.                   MOVE.W      #setStylScrap,-(SP)
  980.                   DC.W        $A83D                     ; _TEDispatch
  981.                   ENDM
  982.  
  983.                   MACRO
  984.                   _SetStyleScrap
  985.                   MOVE.W      #setStyleScrap,-(SP)
  986.                   DC.W        $A83D                     ; _TEDispatch
  987.                   ENDM
  988.  
  989.                   MACRO
  990.                   _TECustomHook
  991.                   MOVE.W      #teCustomHook,-(SP)
  992.                   DC.W        $A83D                     ; _TEDispatch
  993.                   ENDM
  994.  
  995.                   MACRO
  996.                   _TENumStyles
  997.                   MOVE.W      #teNumStyles,-(SP)
  998.                   DC.W        $A83D                     ; _TEDispatch
  999.                   ENDM
  1000.  
  1001. ; new for System 6.0.5/Script Systems 6.0.4 <1.5>
  1002.                   MACRO
  1003.                   _TEFeatureFlag
  1004.                   MOVE.W      #teFeatureFlag,-(SP)
  1005.                   DC.W        $A83D                     ; _TEDispatch
  1006.                   ENDM
  1007.  
  1008.                    MACRO
  1009.                   _TEStylPaste
  1010.                   MOVE.W      #teStylPaste,-(SP)
  1011.                   DC.W        $A83D                     ; _TEDispatch
  1012.                   ENDM
  1013.  
  1014.                  MACRO
  1015.                   _TEStylePaste
  1016.                   MOVE.W      #teStylePaste,-(SP)
  1017.                   DC.W        $A83D                     ; _TEDispatch
  1018.                   ENDM
  1019.  
  1020.                   MACRO
  1021.                   _TESetStyle
  1022.                   MOVE.W      #teSetStyle,-(SP)
  1023.                   DC.W        $A83D                     ; _TEDispatch
  1024.                   ENDM
  1025.  
  1026.                   MACRO
  1027.                   _TEReplaceStyle
  1028.                   MOVE.W      #teReplaceStyle,-(SP)
  1029.                   DC.W        $A83D                     ; _TEDispatch
  1030.                   ENDM
  1031.  
  1032.                   MACRO
  1033.                   _TEGetStyle
  1034.                   MOVE.W      #teGetStyle,-(SP)
  1035.                   DC.W        $A83D                     ; _TEDispatch
  1036.                   ENDM
  1037.  
  1038.                    MACRO
  1039.                   _GetStylHandle
  1040.                   MOVE.W      #getStylHandle,-(SP)
  1041.                   DC.W        $A83D                     ; _TEDispatch
  1042.                   ENDM
  1043.  
  1044.                  MACRO
  1045.                   _GetStyleHandle
  1046.                   MOVE.W      #getStyleHandle,-(SP)
  1047.                   DC.W        $A83D                     ; _TEDispatch
  1048.                   ENDM
  1049.  
  1050.                   MACRO
  1051.                   _SetStylHandle
  1052.                   MOVE.W      #setStylHandle,-(SP)
  1053.                   DC.W        $A83D                     ; _TEDispatch
  1054.                   ENDM
  1055.  
  1056.                   MACRO
  1057.                   _SetStyleHandle
  1058.                   MOVE.W      #setStyleHandle,-(SP)
  1059.                   DC.W        $A83D                     ; _TEDispatch
  1060.                   ENDM
  1061.  
  1062.                    MACRO
  1063.                   _GetStylScrap
  1064.                   MOVE.W      #getStylScrap,-(SP)
  1065.                   DC.W        $A83D                     ; _TEDispatch
  1066.                   ENDM
  1067.  
  1068.                  MACRO
  1069.                   _GetStyleScrap
  1070.                   MOVE.W      #getStyleScrap,-(SP)
  1071.                   DC.W        $A83D                     ; _TEDispatch
  1072.                   ENDM
  1073.  
  1074.                   MACRO
  1075.                   _TEStylInsert
  1076.                   MOVE.W      #teStylInsert,-(SP)
  1077.                   DC.W        $A83D                     ; _TEDispatch
  1078.                   ENDM
  1079.  
  1080.                   MACRO
  1081.                   _TEStyleInsert
  1082.                   MOVE.W      #teStyleInsert,-(SP)
  1083.                   DC.W        $A83D                     ; _TEDispatch
  1084.                   ENDM
  1085.  
  1086.                   MACRO
  1087.                   _TEGetPoint
  1088.                   MOVE.W      #teGetPoint,-(SP)
  1089.                   DC.W        $A83D                     ; _TEDispatch
  1090.                   ENDM
  1091.  
  1092.                   MACRO
  1093.                   _TEGetHeight
  1094.                   MOVE.W      #teGetHeight,-(SP)
  1095.                   DC.W        $A83D                     ; _TEDispatch
  1096.                   ENDM
  1097.                 
  1098.                 MACRO
  1099.                 _AppendDITL
  1100.                 MOVE.W        #AppendDITL,-(SP)
  1101.                 MOVE.L        SP,A0
  1102.                 _CommToolboxDispatch
  1103.                 ADDA.W        #$2,SP                    ; Pop the Selector back off
  1104.                 ENDM
  1105.                 
  1106.                 MACRO
  1107.                 _CountDITL
  1108.                 MOVE.W        #CountDITL,-(SP)
  1109.                 MOVE.L        SP,A0
  1110.                 _CommToolboxDispatch
  1111.                 ADDA.W        #$2,SP                    ; Pop the Selector back off
  1112.                 ENDM
  1113.                 
  1114.                 MACRO
  1115.                 _ShortenDITL
  1116.                 MOVE.W        #ShortenDITL,-(SP)
  1117.                 MOVE.L        SP,A0
  1118.                 _CommToolboxDispatch
  1119.                 ADDA.W        #$2,SP                    ; Pop the Selector back off
  1120.                 ENDM
  1121.  
  1122.                   ENDIF
  1123.  
  1124.     ENDIF    ; ...already included